package com.linkoog.devtools.http.request.http_response.response.response_body.body;

import com.intellij.ui.components.JBPanelWithEmptyText;
import com.linkoog.devtools.http.request.common.response_body.NoneResponseBody;
import com.linkoog.devtools.http.request.http_response.response.response_body.BodyPanel;
import org.jetbrains.annotations.NotNull;

import javax.swing.*;
import java.awt.*;

public class NoneBodyPanel extends JBPanelWithEmptyText implements BodyPanel<NoneResponseBody> {

    public NoneBodyPanel() {
        setLayout(new BorderLayout());
        getEmptyText().setText("Nothing response");
    }


    @Override
    public void resetResponseBody(@NotNull NoneResponseBody responseBody) {
    }

    @Override
    public JPanel getPanel() {
        return this;
    }
}
